<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Title</title>
	</head>
	<body>
		<div><h3>我是标题</h3></div>
		
		<script src="jquery-1.12.4.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				
				//html:innerHTML   text:innerText
				// console.log($("div").html());//<h3>我是标题
				// console.log($("div").text());//我是标题
				// $("div").html("<p>我是文本</p>");
				// $("div").text("<p>我是文本</p>");
			});
		</script>
	</body>
</html>